package com.kool.kadmin.system.request;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author luyu
 */
@Data
public class AddMenuReq {
    @NotBlank(message = "菜单码不能为空")
    private String menuCode;
    @NotBlank(message = "菜单名不能为空")
    private String title;
    private String fatherCode;
    @NotBlank(message = "根菜单码不能为空")
    private String rootCode;
    @NotNull(message = "深度不能为空")
    @Min(value = 0,message = "深度最小值=0")
    private Integer deep;
    @NotNull(message = "序号不能为空")
    @Min(value = 0,message = "序号最小值=0")
    private Integer seq;
    @NotBlank(message = "菜单url不能为空")
    private String url;
    private String viewPath;
    private String icon;
}
